package com.jlb.jolokia.example.restrictor;

import org.jolokia.http.AgentServlet;
import org.jolokia.restrictor.PolicyRestrictor;
import org.jolokia.restrictor.Restrictor;

/**
 * Extending the {@link AgentServlet} to override the default implementation
 * {@link PolicyRestrictor}.
 * 
 * <p>
 * 
 * @see <strong>Section 4.2. Jolokia Restrictors</strong>:
 *      http://www.jolokia.org/reference/html/security.html
 * 
 */
public class JolokiaRestrictorServlet extends AgentServlet {

	/**
	 * Serialization ID
	 */
	private static final long serialVersionUID = 8352728027047456986L;

	@Override
	protected Restrictor createRestrictor(String pLocation) {
		return new JolokiaRestrictor();
	}

}
